#include "user.h"

User::User()
{

}
User::User(int user_id,const QString &username,int user_identity,const QString &loginname,const QString &user_password)
{
    this->usrer_id=user_id;
    this->username=username;
    this->loginname=loginname;
    this->user_password=user_password;
    this->user_identity=user_identity;

}

User::User(User *user)
{
    this->usrer_id=user->getUserId();
    this->username=user->getUsername();
    this->loginname=user->getLoginname();
    this->user_password=user->getUserPassword();
    this->user_identity=user->getUser_identity();
    this->user_status=user->getUserStatus();
}


int User::getUserId()
{
    return this->usrer_id;
}

QString User::getUsername()
{
    return this->username;
}

QString User::getUserPassword()
{
    return this->user_password;
}

int User::getUserStatus()
{
    return this->user_status;
}

QString User::getLoginname() const
{
    return loginname;
}

int User::getUser_identity() const
{
    return user_identity;
}



